'''
Created on Sep 8, 2016

@author: hw
'''
from Queue import Queue
from threading import Thread 

class Mythread(Thread):
    def __init__(self, func, args, name=''):
        Thread.__init__(self)
        self.name = name
        self.func = func
        self.args = args
        
    def getResult(self):
        return self.res
    
    
    def run(self):
        self.res = apply(self.func, self.args)

class DataThread(object):
    '''
    classdocs
    '''


    def __init__(self, params):
        '''
        Constructor
        '''
        
